package com.sdy.approval.provider;

import com.sdy.approval.api.DemoApi;
import com.sdy.common.model.Response;
import com.sdy.mvc.annotation.RemoteService;

import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.RequestPart;

/**
 * <p>
 *  RPC调用
 * </p>
 */
@Slf4j
@RemoteService
public class DemoProvider implements DemoApi {

    @Override
    public Response<Integer> get(@RequestPart(required = false) Integer id,
                                 @RequestPart(required = false) Integer id2) {
        return Response.success(1);
    }
}